using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WindowsFormsApplication1
{
    public partial class rptDanhSachSVtruong : DevExpress.XtraReports.UI.XtraReport
    {
        int STT = 0;
        public rptDanhSachSVtruong()
        {
            InitializeComponent();
        }

        private void colSTT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            STT++;
            colSTT.Text = STT.ToString();
        }

        public void BindData()
        {
            
            colMasv.DataBindings.Add("Text", DataSource, "MasvID");
            colHoten.DataBindings.Add("Text", DataSource, "Hoten");
            colNgaysinh.DataBindings.Add("Text", DataSource, "Ngaysinh", "{0:MM/dd/yyyy}");
            colNoisinh.DataBindings.Add("Text", DataSource, "Noisinh");
            colDiachi.DataBindings.Add("Text", DataSource, "Diachi");
        }

    }
}
